<template>
  <div class="footer">
    <div :class="($route.path==='/film')?'active':''">
      <span class="iconfont icon-dianying"></span>
      <router-link tag="p" to="/film">电影</router-link>
    </div>

    <div :class="($route.path==='/cinema')?'active':''">
      <!--  @click="this.zt=2" :class="this.zt===2?'active':''" -->
      <span class="iconfont icon-yingyuan"></span>
      <router-link tag="p" to="/cinema">影院</router-link>
    </div>

    <div :class="($route.path==='/information')?'active':''">
      <span class="iconfont icon-zixun"></span>
      <router-link tag="p" to="/information">资讯</router-link>
    </div>

    <div :class="($route.path==='/user')?'active':''">
      <span class="iconfont icon-wode"></span>
      <router-link tag="p" to="/user">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      zt: 1
    };
  },
  name: "Footer",
  props: {
    // msg: String
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.footer {
  display: flex;
  justify-content: space-around;
  font-size: 0.16rem;
  width: 100%;
  position: fixed;
  bottom: 0rem;
  overflow: hidden;
  background-color: white;
}
.footer div span {
  margin-left: 0.05rem;
}
.active {
  color: orange;
  border-bottom: 0.01rem solid orange;
}
</style>
